package com.oceansoft.core.jxkh.dao;

import com.hui.platform.system.exception.HuiException;
import com.oceansoft.core.common.util.Pagination;
import com.oceansoft.core.domain.SysDept;
import com.oceansoft.core.domain.SysUser;
import com.oceansoft.core.jxkh.domain.BeChecker;
import com.oceansoft.core.jxkh.domain.Checker;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by begcoffee on 2017/12/11.
 */
public interface ITaskRelationDao {
    List<Checker> querybycondition(HashMap<String, String> map, SysUser user);

    void deleteCheck(String dbid) throws HuiException;

    List<SysUser> checkUserList(HashMap<String, String> paramap, SysUser user);

    void saveChecker(Checker checker) throws HuiException;

    List<BeChecker> relationList(HashMap<String, String> map, SysUser user) throws HuiException;

    void deleteBeCheck(String dbid)throws HuiException;

    List<SysUser> beCheckerList(HashMap<String, String> map, SysUser user);

    void saveBeChecker(BeChecker checker) throws HuiException;

    List<Map<String,Object>> getFirstLevelDept(boolean isadmin,SysUser user);

    List<Map<String,Object>> findCheckerByDeptidAndTaskId(Object deptid, String taskId);

    List<SysUser> findBeCheckerByCheckeridAndTaskId(Object checkerid, String taskId);

    void deleteAllBeCheck(String dbid);
}
